#include <vector>
#include <memory>
#include <sys/types.h>
#include <sys/socket.h>
#include <thread>
#include <map>
#include <iostream>
#include <unistd.h>
#include <regex>
#include "Server/include/Request.h"
#include "Server/include/Server.h"
#include "url/include/url.h"

#include <stdio.h>
#include <unistd.h>
#include <sys/epoll.h>
#include "Server/include/File.h"
#include <memory>
#include "url/include/setting_url.h"
#include "Server/include/File.h"

void fun(std::string* a){
    std::vector<std::string> box;
    box.emplace_back("asdf");
    a=&box[0];
    std::cout<<*a<<std::endl;
}

int main(){
    printf("%d",getpid());
    Server s(8000);
    configuration();
    s.run();
    
    // urls.url("/a/",fun);
    // std::vector<std::string> vec;
    // std::shared_ptr<Url> u=urls.getUrl("/a/",vec);
    // u->fun(0);
    return 0;
}

// 175944 

